-- GENERATED SPELL FOR [Torn Fin Oracle] --


function spell0_2376(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(939,pUnit)
pUnit:RegisterEvent('Sorts_2376', 3000, 1)
end

function spell1_2376(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2376', 3000, 1)
end

function Sorts_2376(pUnit, Event)
local choix_sorts_2376 = math.random(0, 1)
if choix_sorts_2376 == 0 then
pUnit:RegisterEvent('spell0_2376', 1, 1)
end
if choix_sorts_2376 == 1 then
pUnit:RegisterEvent('spell1_2376', 1, 1)
end
end

function mob2376_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2376', math.random(1500, 3000), 1)
end

function mob2376_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2376_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2376_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2376, 1, 'mob2376_Action')
RegisterUnitEvent(2376, 2, 'mob2376_Leave')
RegisterUnitEvent(2376, 3, 'mob2376_Kill')
RegisterUnitEvent(2376, 4, 'mob2376_Die')
